package lihao;

public class Test06 {
    public static void main(String []args) {

        int sum=0;

        System.out.print("被7整除的数有：");

        for(int i=7;i<100;i++) {

            if(i%7==0){

                System.out.print(i);

                System.out.print(" ");

                sum=sum+i;

            }

        }

        System.out.println();

        System.out.print("总合为："+sum);

    }

}

